wayland: Intern settings keys
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Nov 2017 03:47:49 +0000 (22:47 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Nov 2017 03:47:49 +0000 (22:47 -0500)
gdk/wayland/gdkdisplay-wayland.c

index 950b0d57961a2f333f798610f0dc1a91ebcf75d6..39a365f7137c8b5165f50dfd5b13b7f25fb3197e 100644 (file)
@@ -1654,6 +1654,11 @@ init_settings (GdkDisplay *display)
   GSettings *settings;
   gint i;
 
+  g_intern_static_string ("antialiasing");
+  g_intern_static_string ("hinting");
+  g_intern_static_string ("rgba-order");
+  g_intern_static_string ("text-scaling-factor");
+
   display_wayland->settings = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_object_unref);
 
   source = g_settings_schema_source_get_default ();
@@ -1666,6 +1671,8 @@ init_settings (GdkDisplay *display)
       if (!schema)
         continue;
 
+      g_intern_static_string (translations[i].key);
+
       if (g_hash_table_lookup (display_wayland->settings, (gpointer)translations[i].schema) == NULL)
         {
           settings = g_settings_new_full (schema, NULL, NULL);